package {{.tf.Package}};

{{- $tfModelExt := ""}}
{{- range .tplFiles}}
{{- if eq .Type "ModelExt"}}{{$tfModelExt = .}}{{- end}}
{{- end}}

{{- $model := toCamel .table.Name}}
{{- $modelExt := printf "%sExt" $model}}
{{- .ctx.Set "fileName" $model}}

import java.util.Date;
import java.io.Serializable;
import {{$tfModelExt.Package}}.{{$modelExt}};
import lombok.Data;

/**
* {{.table.Name}}:{{.table.Comment}}
*
* @author {{.tpl.Author}}
* {{.datetime}}
*/
@Data
public class {{$model}} extends {{$modelExt}} implements Serializable {

    private static final long serialVersionUID = 1L;
{{range .table.Columns}}
    /**
    * {{.Comment}}
    */
    private {{.LangDataType}} {{toCamelLower .Name}};
{{end}}
}

